package cn.tedu.mybatis.mapper;

import cn.tedu.mybatis.pojo.*;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface BlogMapper  {
    int insert(Blog blog);


    int deleteById(Blog id);


    int updateById(Blog blog);


    Blog selectById(Integer id);


    List<Blog> selectAll();


    BlogV01 selectBlogV01(Integer id);


    List<BlogV02>selectBlogV02();


    int dynamicDeleteBlogById(Integer[] ids);

    int dynamicDeletBlogById2(List<Integer> ids);

    BlogVO3 selectResultMap(Integer id);

    BlogV04 selectBlogAndCommentById(Integer id);

    int countBlog();
}
